package com.ruoyi.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 薪资扣款项配置对象 sal_salary_deduct
 * 
 * @author cf
 * @date 2025-06-04
 */
public class SalSalaryDeduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 扣款类型：0迟到，1早退，2旷工，3休假 */
    @Excel(name = "扣款类型：0迟到，1早退，2旷工，3休假")
    private Integer deductType;

    /** 每次扣款金额（单位：分 或 整数） */
    @Excel(name = "每次扣款金额", readConverterExp = "单=位：分,或=,整=数")
    private Long deductAmount;

    /** 逻辑删除：0未删除，1已删除 */
    private Integer isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDeductType(Integer deductType) 
    {
        this.deductType = deductType;
    }

    public Integer getDeductType() 
    {
        return deductType;
    }
    public void setDeductAmount(Long deductAmount) 
    {
        this.deductAmount = deductAmount;
    }

    public Long getDeductAmount() 
    {
        return deductAmount;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("deductType", getDeductType())
            .append("deductAmount", getDeductAmount())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
